package bookManage.Model.entity;

/**
 * @BelongsProject: library-management-system-master
 * @BelongsPackage: bookManage.Model.entity
 * @Author: yuan wang
 * @CreateTime: 2023-02-01  08:45
 * @Description: 书籍实体层，用于存储书籍的，和数据库表的字段名是相同的
 * @Version: 1.0
 */
public class Book {
    private int id;
    private String bookName;
    private String writer;
    private String kind;
    private String number;
    private String publish;
    private String bookIntroduction;
    private String writerIntroduction;
    private String status;
    private int borrowNumber;
    private String picture;
    private String borrower;
    private int countAll;
    private int countExist;
    private int countLend;

    public Book() {
    }

    public Book(int id, String bookName, String writer, String kind, String number, String publish, String bookIntroduction, String writerIntroduction, String status, int borrowNumber, String picture, String borrower, int countAll, int countExist, int countLend) {
        this.id = id;
        this.bookName = bookName;
        this.writer = writer;
        this.kind = kind;
        this.number = number;
        this.publish = publish;
        this.bookIntroduction = bookIntroduction;
        this.writerIntroduction = writerIntroduction;
        this.status = status;
        this.borrowNumber = borrowNumber;
        this.picture = picture;
        this.borrower = borrower;
        this.countAll = countAll;
        this.countExist = countExist;
        this.countLend = countLend;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getBookIntroduction() {
        return bookIntroduction;
    }

    public void setBookIntroduction(String bookIntroduction) {
        this.bookIntroduction = bookIntroduction;
    }

    public String getWriterIntroduction() {
        return writerIntroduction;
    }

    public void setWriterIntroduction(String writerIntroduction) {
        this.writerIntroduction = writerIntroduction;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getBorrowNumber() {
        return borrowNumber;
    }

    public void setBorrowNumber(int borrowNumber) {
        this.borrowNumber = borrowNumber;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getBorrower() {
        return borrower;
    }

    public void setBorrower(String borrower) {
        this.borrower = borrower;
    }

    public int getCountAll() {
        return countAll;
    }

    public void setCountAll(int countAll) {
        this.countAll = countAll;
    }

    public int getCountExist() {
        return countExist;
    }

    public void setCountExist(int countExist) {
        this.countExist = countExist;
    }

    public int getCountLend() {
        return countLend;
    }

    public void setCountLend(int countLend) {
        this.countLend = countLend;
    }

    @Override
    public String toString() {
        return "Book{" +
               "id=" + id +
               ", bookName='" + bookName + '\'' +
               ", writer='" + writer + '\'' +
               ", kind='" + kind + '\'' +
               ", number='" + number + '\'' +
               ", publish='" + publish + '\'' +
               ", bookIntroduction='" + bookIntroduction + '\'' +
               ", writerIntroduction='" + writerIntroduction + '\'' +
               ", status='" + status + '\'' +
               ", borrowNumber=" + borrowNumber +
               ", picture='" + picture + '\'' +
               ", borrower='" + borrower + '\'' +
               ", countAll=" + countAll +
               ", countExist=" + countExist +
               ", countLend=" + countLend +
               '}';
    }
}
